package com.sp.scmdb.bean;

import java.io.File;
import java.util.Arrays;
import java.util.List;

import com.sp.scmdb.entity.Area;
import com.sp.scmdb.entity.BuMen;
import com.sp.scmdb.entity.Department;
import com.sp.scmdb.entity.Duty;
import com.sp.scmdb.entity.RelEmpArea;
import com.sp.scmdb.entity.Shifts;
import com.sp.scmdb.entity.Title;
import com.sp.scmdb.entity.WorkTime;
import com.sp.scmdb.entity.WorkType;

public class EmployeeBean extends PageBean {
	private String id;
	private String empLabelID;
	private String empName;
	private String empWorkID;
	private String empDepID;
	private String empDutyID;
	private String empTitleID;
	private String empShiftsID;
	private String empWorkTypeID;
	private String peccancys;
	private String empBuMenID;
	private String empSex;
	private String empPhone;
	private String identityNo;
	private String empAddr;
	private String empStatus;
	private String empWorkTime;
	private String empMaxWorkTime;
	private String empNation;
	private File empPhoto;
	private String empPhotoFileName;
	private String empPhotoContentType;
	private String flag;
	private String empType; //是否特种人员
	private String isSpecialEmp; // 查询条件：是否特殊工种
	private String area;
	private String startTime;
	private String endTime;
	private String reID; // 能够进入的区域ID
	private String proName;
	private String proID;
	private String unitName;
	private String safetys;
	private String entryTime;
	private String spection;
	private String contract;
	private String contractTime;
	private String certificate;
	private String certificateName;
	private String townSecure;
	private String otherSecure;
	private String safeCard;
	private String cardTime;
	private String safePosts;
	private String postsTime;
	private String track;
	private String trackTime;
	private String safeOption;
	private String safeOptionTime;
	private String orderBook;
	private String orderTime;
	private String blood;
	private byte[] photo;
	private List<Duty> listDuty;
	private List<Title> listTitle;
	private List<WorkTime> listWorkTime;
	private List<WorkTime> listMaxWorkTime;
	private List<Department> listDepartment;
	private List<WorkType> listWorkType;
	private List<Area> listArea;	
	private List<RelEmpArea> listRelEmpAre;
	private List<Shifts> listShifts;
	private List<Area> listRestrictAlarm;
	private List<BuMen> listBuMen;
	private String dutyName;
	private String titleName;
	
	public String getSafetys() {
		return safetys;
	}
	public void setSafetys(String safetys) {
		this.safetys = safetys;
	}
	public String getPeccancys() {
		return peccancys;
	}
	public void setPeccancys(String peccancys) {
		this.peccancys = peccancys;
	}
	public List<BuMen> getListBuMen() {
		return listBuMen;
	}
	public void setListBuMen(List<BuMen> listBuMen) {
		this.listBuMen = listBuMen;
	}
	public String getEmpBuMenID() {
		return empBuMenID;
	}
	public void setEmpBuMenID(String empBuMenID) {
		this.empBuMenID = empBuMenID;
	}
	public String getDutyName() {
		return dutyName;
	}
	public void setDutyName(String dutyName) {
		this.dutyName = dutyName;
	}
	public String getTitleName() {
		return titleName;
	}
	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}
	
	public String getBlood() {
		return blood;
	}
	public void setBlood(String blood) {
		this.blood = blood;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getEmpPhotoFileName() {
		return empPhotoFileName;
	}
	public void setEmpPhotoFileName(String empPhotoFileName) {
		this.empPhotoFileName = empPhotoFileName;
	}
	public String getEmpLabelID() {
		return empLabelID;
	}
	public void setEmpLabelID(String empLabelID) {
		this.empLabelID = empLabelID;
	}
	public String getEmpName() {
		return empName;
	}
	public void setEmpName(String empName) {
		this.empName = empName;
	}
	public String getEmpWorkID() {
		return empWorkID;
	}
	public void setEmpWorkID(String empWorkID) {
		this.empWorkID = empWorkID;
	}
	public String getEmpDepID() {
		return empDepID;
	}
	public void setEmpDepID(String empDepID) {
		this.empDepID = empDepID;
	}
	public String getEmpDutyID() {
		return empDutyID;
	}
	public void setEmpDutyID(String empDutyID) {
		this.empDutyID = empDutyID;
	}
	public String getEmpTitleID() {
		return empTitleID;
	}
	public void setEmpTitleID(String empTitleID) {
		this.empTitleID = empTitleID;
	}
	public String getEmpSex() {
		return empSex;
	}
	public void setEmpSex(String empSex) {
		this.empSex = empSex;
	}
	public String getEmpPhone() {
		return empPhone;
	}
	
	public byte[] getPhoto() {
		return photo;
	}
	public void setPhoto(byte[] photo) {
		this.photo = photo;
	}
	public void setEmpPhone(String empPhone) {
		this.empPhone = empPhone;
	}
	public String getIdentityNo() {
		return identityNo;
	}
	public void setIdentityNo(String identityNo) {
		this.identityNo = identityNo;
	}
	public String getEmpAddr() {
		return empAddr;
	}
	public void setEmpAddr(String empAddr) {
		this.empAddr = empAddr;
	}
	public String getEmpStatus() {
		return empStatus;
	}
	public void setEmpStatus(String empStatus) {
		this.empStatus = empStatus;
	}
	public String getEmpWorkTime() {
		return empWorkTime;
	}
	public void setEmpWorkTime(String empWorkTime) {
		this.empWorkTime = empWorkTime;
	}
	public String getEmpNation() {
		return empNation;
	}
	public void setEmpNation(String empNation) {
		this.empNation = empNation;
	}
	public File getEmpPhoto() {
		return empPhoto;
	}
	public void setEmpPhoto(File empPhoto) {
		this.empPhoto = empPhoto;
	}
	public String getEmpPhotoContentType() {
		return empPhotoContentType;
	}
	public void setEmpPhotoContentType(String empPhotoContentType) {
		this.empPhotoContentType = empPhotoContentType;
	}
	public List<Duty> getListDuty() {
		return listDuty;
	}
	public void setListDuty(List<Duty> listDuty) {
		this.listDuty = listDuty;
	}
	public List<Title> getListTitle() {
		return listTitle;
	}
	public void setListTitle(List<Title> listTitle) {
		this.listTitle = listTitle;
	}
	public List<WorkTime> getListWorkTime() {
		return listWorkTime;
	}
	public void setListWorkTime(List<WorkTime> listWorkTime) {
		this.listWorkTime = listWorkTime;
	}
	public List<Department> getListDepartment() {
		return listDepartment;
	}
	public void setListDepartment(List<Department> listDepartment) {
		this.listDepartment = listDepartment;
	}

	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getEmpType() {
		return empType==null?"0":empType;
	}
	public void setEmpType(String empType) {
		this.empType = empType;
	}
	
	public List<RelEmpArea> getListRelEmpAre() {
		return listRelEmpAre;
	}
	public void setListRelEmpAre(List<RelEmpArea> listRelEmpAre) {
		this.listRelEmpAre = listRelEmpAre;
	}
	public String getEmpShiftsID() {
		return empShiftsID;
	}
	public void setEmpShiftsID(String empShiftsID) {
		this.empShiftsID = empShiftsID;
	}	
	public List<Shifts> getListShifts() {
		return listShifts;
	}
	public void setListShifts(List<Shifts> listShifts) {
		this.listShifts = listShifts;
	}
	
	public String getEmpWorkTypeID() {
		return empWorkTypeID;
	}

	public void setEmpWorkTypeID(String empWorkTypeID) {
		this.empWorkTypeID = empWorkTypeID;
	}
	public List<WorkType> getListWorkType() {
		return listWorkType;
	}
	public void setListWorkType(List<WorkType> listWorkType) {
		this.listWorkType = listWorkType;
	}
	public String getFlag() {
		return flag;
	}
	public void setFlag(String flag) {
		this.flag = flag;
	}
	public String getEmpMaxWorkTime() {
		return empMaxWorkTime;
	}
	public void setEmpMaxWorkTime(String empMaxWorkTime) {
		this.empMaxWorkTime = empMaxWorkTime;
	}
	public List<WorkTime> getListMaxWorkTime() {
		return listMaxWorkTime;
	}
	public void setListMaxWorkTime(List<WorkTime> listMaxWorkTime) {
		this.listMaxWorkTime = listMaxWorkTime;
	}
	
	public String getReID() {
		return reID;
	}
	public void setReID(String reID) {
		this.reID = reID;
	}
	public List<Area> getListRestrictAlarm() {
		return listRestrictAlarm;
	}
	public void setListRestrictAlarm(List<Area> listRestrictAlarm) {
		this.listRestrictAlarm = listRestrictAlarm;
	}
	public String getIsSpecialEmp() {
		return isSpecialEmp;
	}
	public void setIsSpecialEmp(String isSpecialEmp) {
		this.isSpecialEmp = isSpecialEmp;
	}
	public List<Area> getListArea() {
		return listArea;
	}
	public void setListArea(List<Area> listArea) {
		this.listArea = listArea;
	}
	
	public String getProName() {
		return proName;
	}
	public void setProName(String proName) {
		this.proName = proName;
	}
	public String getProID() {
		return proID;
	}
	public void setProID(String proID) {
		this.proID = proID;
	}
	public String getUnitName() {
		return unitName;
	}
	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}
	public String getEntryTime() {
		return entryTime;
	}
	public void setEntryTime(String entryTime) {
		this.entryTime = entryTime;
	}
	public String getSpection() {
		return spection;
	}
	public void setSpection(String spection) {
		this.spection = spection;
	}
	public String getContract() {
		return contract;
	}
	public void setContract(String contract) {
		this.contract = contract;
	}
	public String getContractTime() {
		return contractTime;
	}
	public void setContractTime(String contractTime) {
		this.contractTime = contractTime;
	}
	public String getCertificate() {
		return certificate;
	}
	public void setCertificate(String certificate) {
		this.certificate = certificate;
	}
	public String getCertificateName() {
		return certificateName;
	}
	public void setCertificateName(String certificateName) {
		this.certificateName = certificateName;
	}
	public String getTownSecure() {
		return townSecure;
	}
	public void setTownSecure(String townSecure) {
		this.townSecure = townSecure;
	}
	public String getOtherSecure() {
		return otherSecure;
	}
	public void setOtherSecure(String otherSecure) {
		this.otherSecure = otherSecure;
	}
	public String getSafeCard() {
		return safeCard;
	}
	public void setSafeCard(String safeCard) {
		this.safeCard = safeCard;
	}
	public String getCardTime() {
		return cardTime;
	}
	public void setCardTime(String cardTime) {
		this.cardTime = cardTime;
	}
	public String getSafePosts() {
		return safePosts;
	}
	public void setSafePosts(String safePosts) {
		this.safePosts = safePosts;
	}
	public String getPostsTime() {
		return postsTime;
	}
	public void setPostsTime(String postsTime) {
		this.postsTime = postsTime;
	}
	public String getTrack() {
		return track;
	}
	public void setTrack(String track) {
		this.track = track;
	}
	public String getTrackTime() {
		return trackTime;
	}
	public void setTrackTime(String trackTime) {
		this.trackTime = trackTime;
	}
	public String getSafeOption() {
		return safeOption;
	}
	public void setSafeOption(String safeOption) {
		this.safeOption = safeOption;
	}
	public String getSafeOptionTime() {
		return safeOptionTime;
	}
	public void setSafeOptionTime(String safeOptionTime) {
		this.safeOptionTime = safeOptionTime;
	}
	public String getOrderBook() {
		return orderBook;
	}
	public void setOrderBook(String orderBook) {
		this.orderBook = orderBook;
	}
	public String getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((empBuMenID == null) ? 0 : empBuMenID.hashCode());
		result = prime * result
				+ ((empDepID == null) ? 0 : empDepID.hashCode());
		result = prime * result
				+ ((empDutyID == null) ? 0 : empDutyID.hashCode());
		result = prime * result
				+ ((empLabelID == null) ? 0 : empLabelID.hashCode());
		result = prime * result + ((empName == null) ? 0 : empName.hashCode());
		result = prime * result
				+ ((empTitleID == null) ? 0 : empTitleID.hashCode());
		result = prime * result
				+ ((empWorkTypeID == null) ? 0 : empWorkTypeID.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EmployeeBean other = (EmployeeBean) obj;
		if (empBuMenID == null) {
			if (other.empBuMenID != null)
				return false;
		} else if (!empBuMenID.equals(other.empBuMenID))
			return false;
		if (empDepID == null) {
			if (other.empDepID != null)
				return false;
		} else if (!empDepID.equals(other.empDepID))
			return false;
		if (empDutyID == null) {
			if (other.empDutyID != null)
				return false;
		} else if (!empDutyID.equals(other.empDutyID))
			return false;
		if (empLabelID == null) {
			if (other.empLabelID != null)
				return false;
		} else if (!empLabelID.equals(other.empLabelID))
			return false;
		if (empName == null) {
			if (other.empName != null)
				return false;
		} else if (!empName.equals(other.empName))
			return false;
		if (empTitleID == null) {
			if (other.empTitleID != null)
				return false;
		} else if (!empTitleID.equals(other.empTitleID))
			return false;
		if (empWorkTypeID == null) {
			if (other.empWorkTypeID != null)
				return false;
		} else if (!empWorkTypeID.equals(other.empWorkTypeID))
			return false;
		return true;
	}
	
	
}
